namespace ConsoleApp2._1023;

public class Student
{
    private String name;
    private int age;
    private String sex;

    public void Text1()
    {
        int n = Convert.ToInt32(Console.ReadLine());
        int[] a = new int[n];
        for (int i = 0; i < n; i++)
        {
            a[i] = Convert.ToInt32(Console.ReadLine());
        }

        for (int i = 0; i < n-1; i++)
        {
            for (int j = 0; j < n - i - 1; i++)
            {
                if (a[j] < a[j + 1])
                {
                    int temp = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = temp;
                }
            }
        }

        for (int i = 0; i < n; i++)
        {
            Console.Write(a[i] + " ");
        }
    }

    public static void Main(string[] args)
    {
        Student st = new Student();
        st.Text1();
    }
}